package com.dykj.fireFighting.server.socialUnit.buildmanger.mapper;

import com.dykj.fireFighting.api.socialUnit.buildmanger.entity.Floor;
import com.dykj.fireFighting.common.core.mapper.SuperMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * @Description 建筑管理-楼层
 * @Author aixiaolan
 * @Date  2021-06-23 09:44:33
 */
public interface FloorMapper extends SuperMapper<Floor> {

    /**
     * 获取楼层列表
     * @param unitId
     * @return
     */
    @Select("select * from floor where unit_id=#{unitId}")
    List<Floor>getFloorList(@Param("unitId") String unitId);
    /**
     * 根据楼栋id获取楼层列表
     * @param buildingId
     * @return
     */
    @Select("select * FROM floor where building_id=#{buildingId}")
    List<Floor>getFloorListByBuildingId(@Param("buildingId") String buildingId);
	
}
